import streamlit as st


st.set_page_config(page_title="Quant Management Platform", layout="wide")


def welcome():
    st.title("欢迎来到量化平台")


if __name__ == "__main__":
    pages = [
        welcome,
        st.Page("pages/account_market.py", title="账户信息"),
        st.Page("pages/factor_view.py", title="因子任务"),
        st.Page("pages/strategy_view.py", title="策略查看"),
        st.Page("pages/task_center.py", title="任务中心"),
    ]

    pg = st.navigation(pages)
    pg.run()
